package nc.ui.dm.costapprove;

import java.awt.Container;

import nc.ui.trade.bsdelegate.BusinessDelegator;
import nc.vo.pub.SuperVO;

public class ClientBusinessDelegator extends BusinessDelegator {

	private Container parent = null;
	
	public ClientBusinessDelegator(Container parent ){
		this.parent = parent;
	}
	@Override
	public SuperVO[] queryHeadAllData(Class headClass, String strBillType,
			String strWhere) throws Exception {
		String where = " pk_dm_sendadjust_h in(select distinct DM_SENDADJUST_H.pk_dm_sendadjust_h from DM_SENDADJUST_H join DM_SENDADJUST_B on DM_SENDADJUST_B.pk_dm_sendadjust_h = DM_SENDADJUST_H.pk_dm_sendadjust_h " +
				" where 1=1 and isnull(DM_SENDADJUST_H.dr,0)=0 and isnull(DM_SENDADJUST_B.dr,0)=0 ";
		if(strWhere!=null && !"".equals(strWhere)){
			where = where +" and "+ strWhere;
		}
		where = where+")";
		return super.queryHeadAllData(headClass, strBillType, where);
	}
}
